package com.feonix.common.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.feonix.common.permission.Allowed;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.TYPE})
public @interface Permission {

	public abstract String rootPath() default "/manager";

	public abstract String module() default "";

	public abstract String function() default "";

	public abstract Allowed allowedAdmin() default Allowed.DEFAULT;

	public abstract Allowed allowedGroup() default Allowed.DEFAULT;

	public abstract String params() default "";

}
